home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 4
/
Aminet 4 - November 1994.iso
/
aminet
/
dev
/
gui
/
muibuilderv11.lha
/
muibuilder
/
mb
/
e
/
small_locale
/
Small_cat.e
< prev
next >
Wrap
Text File
|
1994-03-15
|
2KB
|
74 lines
/****************************************************************
This file was created automatically by `FlexCat V1.1'
Do not edit by hand!
****************************************************************/
/* External modules */
MODULE 'locale', 'libraries/locale'
MODULE 'utility/tagitem'
/* Object definitions */
OBJECT fc_type
id :LONG
str :LONG
ENDOBJECT
/* Global variables */
DEF catalog_Small:PTR TO catalog
DEF array_Small[5]:ARRAY OF fc_type
/* Constant definitions */
CONST MSG_AppDescription = 0
CONST MSG_WI_smallexample = 1
CONST MSG_GR_lists = 2
CONST MSG_BT_ok = 3
CONST MSG_BT_cancel = 4
/* Opening catalog procedure */
PROC open_Small_catalog(loc:PTR TO locale, language:PTR TO CHAR)
DEF tag, tagarg, dummy_var = 0
array_Small[dummy_var].id := MSG_AppDescription; array_Small[dummy_var++].str := 'Here is a small example of MUI-Builder'
array_Small[dummy_var].id := MSG_WI_smallexample; array_Small[dummy_var++].str := 'Small example'
array_Small[dummy_var].id := MSG_GR_lists; array_Small[dummy_var++].str := 'two lists'
array_Small[dummy_var].id := MSG_BT_ok; array_Small[dummy_var++].str := '_o OK'
array_Small[dummy_var].id := MSG_BT_cancel; array_Small[dummy_var++].str := '_c Cancel'
IF (localebase AND (catalog_Small = NIL))
IF language
tag := OC_LANGUAGE
tagarg := language
ELSE
tag:= TAG_IGNORE
ENDIF
catalog_Small := OpenCatalogA(loc, 'Small.catalog',
[ OC_BUILTINLANGUAGE, 'english',
tag, tagarg,
OC_VERSION, 0,
TAG_DONE ])
ENDIF
ENDPROC
/* Closing catalog procedure */
PROC close_Small_catalog()
IF localebase THEN CloseCatalog(catalog_Small)
catalog_Small := NIL
ENDPROC
/* Procedure which returns the correct string according to the catalog */
PROC get_Small_string(strnum)
DEF defaultstr:PTR TO CHAR, i = 0
WHILE ((i < 5) AND (array_Small[i].id <> strnum)) DO INC i
defaultstr := IF (i < 5) THEN array_Small[i].str ELSE NIL
ENDPROC IF catalog_Small THEN GetCatalogStr(catalog_Small, strnum, defaultstr) ELSE defaultstr
/****************************************************************
End of the automatically created part!
****************************************************************/